import { createRouter, RouteRecordRaw, createWebHistory } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'default',
        meta: {
            title: '默认页',
            keepAlive: true,
            requireAuth: false,
        },
        component: () => import('@/App.vue'),
    },
    {
        path: '/login',
        name: 'Login',
        meta: {
            title: '登录',
            keepAlive: true,
            requireAuth: false,
        },
        component: () => import('@/pages/login.vue'),
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})
export default router
